package com.example.orderservice.pojo.po;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 鱼凫
 * @version 1.0
 * Create by 2023/4/11 21:52
 */
@Data
@TableName("discounts")
public class DiscountsPO implements Serializable {
    @TableId("id")
    private String id;

    @TableField("name")
    private String name;

    @TableField("description")
    private String description;

    @TableField("type")
    private Integer type;

    @TableField("discounts")
    private Double discounts;

    @TableField("discounts_type")
    private Integer discountsType;

    @TableField("effect_type")
    private Integer effectType;

    @TableField("effect_condition")
    private Double effectCondition;

    @TableField("hotel_id")
    private String hotelId;

    @TableField("validity_time")
    private Date validityTime;

    @TableField("exclusive_type")
    private Integer exclusiveType;

    @TableField("exclusive_range")
    private String exclusiveRange;

    public String getHotelId() {
        return hotelId;
    }

    public void setHotelId(String hotelId) {
        this.hotelId = hotelId;
    }

    @TableLogic
    @TableField("is_deleted")
    private Integer isDeleted;

    @TableField(value = "create_by",fill = FieldFill.INSERT)
    private String createBy;

    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(value = "update_by",fill = FieldFill.UPDATE)
    private String updateBy;

    @TableField(value = "update_time",fill = FieldFill.UPDATE)
    private Date updateTime;
}
